package com.scau.ums.service.imp.news;

import com.github.pagehelper.PageHelper;
import com.scau.ums.mapper.CustomedNewsMapper;
import com.scau.ums.model.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class newsImp {
    //自定义mapper文件
    @Autowired
    public CustomedNewsMapper customedNewsMapper;

    public List<News> SelectNews(Integer currentPage){
        PageHelper.startPage(currentPage,5);
        return  customedNewsMapper.SelectNews();
    }
}
